package cn.mado.org.controller;

import cn.mado.basic.util.PageList;
import cn.mado.org.domain.Log;
import cn.mado.org.query.LogQuery;
import cn.mado.org.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {

    @Autowired
    private LogService logService;

    @PostMapping
    public PageList<Log> queryPage(@RequestBody LogQuery query) {
        PageList<Log> pageList = logService.queryPage(query);
        return pageList;
    }


}
